pmtools-perl6-0.01

Mark Leighton Fisher on 2010-07-02T16:40:28

I am pleased to announce version 0.01 of pmtools-perl6, a suite of module tools for Perl 6. (Not quite up on CPAN yet as I write this.)

pmdirs is the only tool in pmtools-perl6 v0.01, as it was the simplest to port (more tools to come...)

On Cygwin (my testing environment), I cannot get the #! to work -- you will need to invoke pmdirs something like this under Cygwin:

    c:/parrot-2.2.0/bin/perl6 d:/cygwin/home/pmtools-perl6-0.01/pmdirs

(If you want to contribute Perl 6 ports of the other pmtools, please let me know.)



The source to pmdirs:

# pmdirs -- print the perl module path, newline separated
# tchrist@perl.com
# mark-fisher@comcast.net

# TODO: use warnings;
use v6;

for (@*INC) {
    say $_;
}

=begin

=head1 NAME

pmdirs - print out module directories

=head1 DESCRIPTION

This just prints out the current @INC path, one directory per line.
This is for people who don't want to parse through C output or
hack up their own calls to C.

=head1 EXAMPLES

    $ pmdirs
    /home/tchrist/perllib/i686-linux
    /home/tchrist/perllib
    /usr/local/devperl/lib/5.00554/i686-linux
    /usr/local/devperl/lib/5.00554
    /usr/local/devperl/lib/site_perl/5.00554/i686-linux
    /usr/local/devperl/lib/site_perl/5.00554
    .

This also works for alternate version of Perl:

    $ filsperl -S pmdirs
    /home/tchrist/perllib
    /usr/local/filsperl/lib/5.00554/i686-linux-thread
    /usr/local/filsperl/lib/5.00554
    /usr/local/filsperl/lib/site_perl/5.00554/i686-linux-thread
    /usr/local/filsperl/lib/site_perl/5.00554
    .

=head1 SEE ALSO

perlrun(1), perlvar(1), lib(3)

=head1 AUTHORS and COPYRIGHTS

Copyright (C) 1999 Tom Christiansen.

Copyright (C) 2006-2010 Mark Leighton Fisher.

This is free software; you can redistribute it and/or modify it
under the terms of either:
(a) the GNU General Public License as published by the Free
Software Foundation; either version 1, or (at your option) any
later version, or
(b) the Perl "Artistic License".
(This is the Perl 5 licensing scheme.)

Please note this is a change from the
original pmtools-1.00 (still available on CPAN),
as pmtools-1.00 were licensed only under the
Perl "Artistic License".

=end